package br.com.news.database.entities;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import br.com.news.database.entities.keys.AlternativaEnqueteKeyEntity;
import br.com.news.database.utils.BaseEntity;

@Entity
@Table(name = "alternativaenquete")
public class AlternativaEnqueteEntity extends BaseEntity{

	private static final long serialVersionUID = 1368231360508239487L;

	@EmbeddedId
	private AlternativaEnqueteKeyEntity alternativaEnqueteKey;

	private String descricao;

	public AlternativaEnqueteEntity() {
	}

	public AlternativaEnqueteEntity(String descricao) {
		this.descricao = descricao;
	}

	public String getDescricao() {
		return this.descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public AlternativaEnqueteKeyEntity getAlternativaEnqueteKey() {
		return this.alternativaEnqueteKey;
	}

	public void setAlternativaEnqueteKey(AlternativaEnqueteKeyEntity alternativaEnqueteKey) {
		this.alternativaEnqueteKey = alternativaEnqueteKey;
	}

}
